<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //原型对象
        //基类提取需要在子类中需要重写的
        //子类对方法进行重写
        var people = function(sex,age){
            this.sex = sex
            this.age = age
        }
        people.prototype.hobby = function(){
            //私有属性
            
        }
        people.prototype.thinking = function(){
            
        }
        var women = function(sex,age,height){

        }
        women.prototype.hobby = function (){
            return '女生爱逛街和化妆'
        }
        women.prototype.thinking = function(){
            return '比较感性'
        }
        var man = function(sex,age,height){

        }
        man.prototype.hobby = function(){
            return '男生爱运动和游戏'
        }
        man.prototype.thinking = function (){
            return '比较理性'
        }
    </script>
</body>
</html>